mockseries.signal.signal
#
SignalInterface representing any type of signal.
#
generateGenerate a signal from a list of times.
#
preview_yearPlot one year of signal with a day granularity.
Arguments:
num_years
- Number of years to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
preview_monthPlot one month of signal with an hour granularity.
Arguments:
num_months
- Number of months to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
preview_weekPlot one week of signal with an hour granularity.
Arguments:
num_weeks
- Number of weeks to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
preview_dayPlot one day of signal with a minute granularity.
Arguments:
num_days
- Number of days to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
preview_hourPlot one hour of signal with a second granularity.
Arguments:
num_hours
- Number of hours to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
preview_minutePlot one minute of signal with a centisecond granularity.
Arguments:
num_minutes
- Number of hours to plot.start_time
- Time from which to start. If None, defaults to current datetime.
#
__add__Add two signals.
#
__mul__Multiply two signals.
#
__sub__Subtract one signal from another.
#
__neg__Get the opposite of a signal.
#
__rmul__Multiplies by a constant.
#
__radd__Adds a flat component.